<title>所有订单列表</title>
<link type="text/css" href="${ctx}/resources/css/ace.min.1.css"  rel="stylesheet" />
<table>
<tr>
<tr>
<th>订单状态 :</th>
<th width="70px;" class="label label-sm label-light arrowed"> <a href="${ctx}/admin/order/list${suffix}" >全部</a> </th>
<th width="70px;" class="label label-sm label-success arrowed"> <a href="${ctx}/admin/order/list${suffix}?state=1" >正常</a> </th>
<th width="70px;" class="label label-sm label-warning arrowed"> <a href="${ctx}/admin/order/list${suffix}?state=2" >禁用</a> </th>
</tr>
</table>
<div class="hr hr-5 dotted"></div>
<div class="row">
	<div class="col-xs-12">
		<div class="table-responsive">
			<table id="sample-table-1" class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<th>ID</th>
						<th>订单id</th>
						<th>用户id</th>
						<th>发货速度（5分）</th>
						<th>商品品质（5分）</th>
						<th>物业服务（5分）</th>
						<th>评价时间</th>
						<th>评价内容</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
				<#list pager.itemList as u>
					<tr>
						<td><span class="green center">${u.id}</span></td>
						<td>${u.orderId!}</td>
						<td>${u.userId!}</td>
						<td>${u.speed!}</td>
						<td>${u.trait}</td>
						<td>${u.server!}</td>
						<td>
							<#if u.createTime??>
								${tagUtils.formatDate(u.createTime)!}
							</#if>
						</td>
						<td>
						${u.content!}
						</td>
						<td>
							<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
								<a class="red" onclick="isDel('${ctx}/admin/score/delete-${u.id}${suffix}')" alt="Delete">
									<i class="icon-trash bigger-130" title="删除"></i> 
								</a>
							</div>
						</td>
					</tr>
				</#list>
				</tbody>
			</table>
		</div><!-- /.table-responsive -->
		
		<div class="hr hr-18 dotted hr-double"></div>
		<@h.page pager=pager action="${ctx}/admin/orderscore/list${suffix}" />
	</div><!-- /span -->
</div><!-- /row -->

<#if errorMsg??>
	<div class="hr hr-18 hr-double dotted"></div>
	<h4 class="lighter">
		<i class="icon-hand-right icon-animated-hand-pointer red"></i>
		<span class="pink">${errorMsg}</span>
	</h4>
</#if>

<#if infoMsg??>
	<div class="hr hr-18 hr-double dotted"></div>
	<h4 class="lighter">
		<i class="icon-hand-right icon-animated-hand-pointer green"></i>
		<span class="pink">${infoMsg}</span>
	</h4>
</#if>
<script>
	function isDel(url){
		if(!confirm("确认要删除？")){ 
				return false;		
		}else{
			location.href = url;
		}
	}
$(document).ready(function(){
	RP.addBreadcrumb([ {name:"所有订单列表", active: true}]);
});
</script>